package com.dhj.easyexcel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserData {

    /*
    value 表头，列名
    index 该属性对应到 excel 文件中表头的第几列或者直接就是第几列，索引从 0 开始
     */
    @ExcelProperty(value = "用户id", index = 0)
    private String id;

    @ExcelProperty(value = "用户名称", index = 1)
    private String name;
}
